Add some more builder parser tests
authorMatthias Clasen <mclasen@redhat.com>
Mon, 19 Oct 2015 10:13:33 +0000 (06:13 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 20 Oct 2015 10:14:57 +0000 (06:14 -0400)
These tests contain non-canonical and non-existing property names.

testsuite/gtk/ui/dialog7.expected [new file with mode: 0644]
testsuite/gtk/ui/dialog7.ui [new file with mode: 0644]
testsuite/gtk/ui/dialog8.expected [new file with mode: 0644]
testsuite/gtk/ui/dialog8.ui [new file with mode: 0644]

diff --git a/testsuite/gtk/ui/dialog7.expected b/testsuite/gtk/ui/dialog7.expected
new file mode 100644 (file)
index 0000000..ff43ca4
--- /dev/null
@@ -0,0 +1 @@
+SUCCESS
diff --git a/testsuite/gtk/ui/dialog7.ui b/testsuite/gtk/ui/dialog7.ui
new file mode 100644 (file)
index 0000000..07a508b
--- /dev/null
@@ -0,0 +1,10 @@
+<!-- missing attribute in dialog markup -->
+<interface>
+  <object class="GtkDialog">
+    <child type="action">
+      <object class="GtkButton" id="button_ok">
+        <property name="can_default">1</property>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/testsuite/gtk/ui/dialog8.expected b/testsuite/gtk/ui/dialog8.expected
new file mode 100644 (file)
index 0000000..222eec3
--- /dev/null
@@ -0,0 +1,2 @@
+ERROR: gtk-builder-error-quark 11
+.:6:39 Invalid property: GtkButton.cantdefault
diff --git a/testsuite/gtk/ui/dialog8.ui b/testsuite/gtk/ui/dialog8.ui
new file mode 100644 (file)
index 0000000..9071da3
--- /dev/null
@@ -0,0 +1,10 @@
+<!-- missing attribute in dialog markup -->
+<interface>
+  <object class="GtkDialog">
+    <child type="action">
+      <object class="GtkButton" id="button_ok">
+        <property name="cantdefault">1</property>
+      </object>
+    </child>
+  </object>
+</interface>